<?php
/**
 * Created by PhpStorm.
 * User: Lin Hui
 * Date: 2017/5/23
 * Time: 13:53
 */

namespace Mobile\Model;


use Think\Model;

class SettingModel extends Model
{
    /**
     * @param $key
     * @return mixed
     */
    public function getSetting($key)
    {
        return $this->where(array('key'=>$key))->getField('val');
    }
}